import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/system/token/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

export function getUserInfo() {
  return request({
    url: '/system/token/getUserInfo',
    method: 'get'
  })
}
